import cv2
import numpy as np


def test():
    src = cv2.imread('lina.png', 1)

    h, w, c = src.shape

    mask = np.zeros((h, w), dtype=np.uint8)
    # mask[100:400, 200:400] = 255
    mask[100:500, 100:200] = 255

    img=cv2.bitwise_and(src, src, mask=mask)

    cv2.imshow('src', src)
    cv2.imshow('Contour1s', img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

